import { ChunkMessage, ModelMesssage } from "../../model/types";

export interface DatabaseParam {
	type: 'mysql'
	connectionString: string
	mode: 'admin' | 'write' | 'read'
}

export interface ModelInfoParam {
	baseUrl?: string
	apiKey?: string
	modelName: string
	ak?: string
	sk?: string
	maxTokens?: string
	temperature?: string
}


export interface ProjectTemplateParam {
	type: 'network' | 'filesystem'
	url?: string
	path?: string
	name?: string
}

export interface Task {
	taskId: string;
	messages?: LocalModelMessage[];
	firstMessage: LocalModelMessage
}


export interface LocalModelMessage {
	taskId: string
	msgId: string
	message: ModelMesssage
	createTime: number
	updateTime?: number
}

export interface LocalChunkMessage {
	taskId: string
	msgId: string
	chunk: ChunkMessage
	index: number
}

export interface HighlightjsParam {
	theme: string
	themes: string[]
	content: string
}
